<template>
	<view class="patientList bsbb">
		<view class="top u-flex u-row-between">
			<view class="left u-flex u-row-between fnw" style="width: 200rpx;">
				<view v-if="canGoPage" class="name" @click="goPage('/pages/indexSubPackage/patientDetail/index?id=100')">
					刘志强
				</view>
				<view v-else class="name">
					刘志强
				</view>
				<view class="sex">
					男
				</view>
				<view class="age">
					34
				</view>
			</view>
			<view class="right">
				<view class="btn">
					跟进中
				</view>
			</view>
		</view>
		<view class="bottom u-flex u-row-between u-m-t-14 u-font-xs" style="color: rgb(131, 133, 136);">
			<view class="bottom_left u-flex ">
				<!-- <view class="">
					推荐医生：
				</view>
				<view class="">
					刘医生
				</view> -->
				<view class="">
					预到时间：
				</view>
				<view class="">
					2020-07-21
				</view>
			</view>
			<view class="bottom_right">
				<view class="" style="margin-right: 10rpx;">
					2020/07/29
				</view>
			</view>
		</view>
		<view class="u-m-t-30" v-if="canGoPage">
			<u-line color="rgb(144, 147, 153)" border-style="dashed" />
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		computed: {
			canGoPage() {
				let pages = getCurrentPages();
				let curPage = pages[pages.length - 1].route;
				return curPage === "pages/index/index" ? true : false
			}
		},
		methods: {
			goPage(url) {
				uni.navigateTo({
					url,
				})
			}
		},
		mounted() {}
	}
</script>

<style scoped lang="scss">
	.btn {
		width: 140rpx;
		border: 1px solid #cec01c;
		color: #cec01c;
		text-align: center;
		height: 50rpx;
		line-height: 48rpx;
		border-radius: 50rpx;
	}

	.patientList {
		height: 160rpx;
	}
</style>
